home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: gail.ripco.com!mambuhl
- From: mambuhl@ripco.com (Martin Ambuhl)
- Subject: Re: PLEASE HELP!!!
- Message-ID: <DpL12o.DLC@rci.ripco.com>
- X-Nntp-Sender: mambuhl@golden.ripco.com
- Sender: usenet@rci.ripco.com (Net News Admin)
- Organization: Ripco Internet BBS Chicago
- Date: Tue, 9 Apr 1996 06:37:36 GMT
-
- b3503104@cc.ntu.edu.tw (b3503104) in <4k25rv$l4s@netnews.ntu.edu.tw>
- asks:
-
-
- > How can I write a program in C to have the similar function as "dir" in DOS?
- >??
- > (that is to LIST the files)
-
- >Any suggestions or hints will be very helpful and appreciated!!
-
- #include <stdlib.h>
-
- int main()
- {
- system("dir"); /* for your DOS-based implementation */
- return 0;
- }
-
- --
- * Martin Ambuhl net: mambuhl@ripco.com
- * Chicago, IL (USA)
-